#include "UsageEnvironment.hh"

bool UsageEnvironment::reclaim()
{
    if ((NULL == liveMediaPriv) && (NULL == groupsockPriv))
    {
        delete this;
        return true;
    }

    return false;
}

UsageEnvironment::UsageEnvironment(TaskScheduler &scheduler) : fTaskScheduler(scheduler)
{    
}

UsageEnvironment::~UsageEnvironment()
{
}

void UsageEnvironment::internalError()
{
    abort();
}
void TaskScheduler::rescheduleDelayedTask(TaskToken & task, long long microseconds, TaskFunc * proc, void * clientData)
{
    unscheduleDelayedTask(task);
    task = scheduleDelayedTask(microseconds, proc, clientData);
}

void TaskScheduler::internalError()
{
    abort();
}

TaskScheduler::TaskScheduler()
{
}

TaskScheduler::~TaskScheduler()
{
}